﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="MoviesList.aspx.cs" Inherits="TicketMovie.Admin.WebForm1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="message message-error" runat="server" id="message_error" visible="false">
        <h6>Error</h6>
        <p>You can't delete this film!</p>
        <a href="#" title="Close this message" class="close icon icon_close"></a>
    </div>
    <div class="message message-success" runat="server" id="message_thanhcong" visible="false">
        <h6>Succesful</h6>
        <p>Deleted</p>
        <a href="#" title="Close this message" class="close icon icon_close tooltip"></a>
    </div>
<table cellspacing="0" class="listTable" id="postList">
					<!-- Thead -->
					<thead>
						<tr>
                            <th class="first"><div></div></th>
							<th><a href="#" title="Author">Name</a></th>
							<th><a href="#" title="Categories">Length</a></th>
                            <th><a href="#" title="Categories">Images</a></th>
                            <th><a href="#" title="Categories">Note</a></th>
                            <th><a href="#" title="Categories">Detail</a></th>
                            <th><a href="#" title="price">Price</a></th>
							<th class="last"><a href="#" title="Date">Option</a></th>
						</tr>
					</thead>
					<!-- /Thead -->
					<!-- Tfoot -->
					
					<!-- /Tfoot -->
					<!-- Tbody -->
					<tbody>
                    <asp:Repeater ID="RepeaterFlim" runat="server">
                    <ItemTemplate>
                        <tr>
                            <td></td>
							<td><%# Eval("film_name")%></td>
                            <td><%# Eval("length_hours") + ":" + Eval("length_minutes")%> </td>
                            <td><%# Eval("image")%></td>
                            <td class="formatnote" id="Formatnote"><%# Eval("notes")%></td>
							<td class="formatdetail" id="Formatdetail"><%# Eval("detail")%></td>
                            <td><%# Eval("price") %></td>
							<td class="last">
                                    <asp:LinkButton ID="LinkButtonEditFilm" runat="server"><a href="EditMovies.aspx">Edit</a></asp:LinkButton>
                                <asp:HiddenField ID="HiddenFieldDelfilm" Value='<%# Eval("code_flim") %>' runat="server" />
                                <asp:LinkButton ID="LinkButtonXoa" OnClick="LinkButtonDeleteFilm_Click" runat="server" OnClientClick="return confirm('Do you want delete this film?')">Delete</asp:LinkButton>                    
                            </td>
						</tr>
                    </ItemTemplate>
                    </asp:Repeater>							
					</tbody>
					<!-- /Tbody -->
				</table>
</asp:Content>
